home *** CD-ROM | disk | FTP | other *** search
/ Shareware Super Platinum 8 / Shareware Super Platinum 8.iso / mac / EDITORS / MPE4WP22.ZIP;1 / README.MPE < prev    next >
Encoding:
Text File  |  1992-10-14  |  21.5 KB  |  445 lines

  1.                                 MPE4WP
  2.             MACRO PROGRAMMING ENVIRONMENT FOR WORDPERFECT
  3.                              Version 2.2
  4.  
  5.                    A Program by Michael H. Shacter
  6.                          10309 Parkwood Drive
  7.                    Kensington, Maryland 20895-4041
  8.  
  9.  
  10.      MPE4WP is the Macro Programming Environment for WordPerfect.
  11. MPE4WP is a replacement for the WordPerfect Macro Editor that lets you
  12. create and edit WordPerfect macros on the full WordPerfect editing
  13. screen using all the advanced editing features offered by WordPerfect.
  14. MPE4WP brings virtually seamless integration with WordPerfect.  In
  15. short, it is the macro editor that you wish had been included with
  16. WordPerfect.  (You may also use create macros using any text editor or
  17. word processor that saves text in ASCII format.)
  18.  
  19.      This README file contains a brief description of MPE4WP with an
  20. overview of its features.  The User Reference Guide (MANUAL.MPE)
  21. presents a complete explanation of all MPE4WP features.  Incidentally,
  22. the length of the documentation is inversely proportional to the
  23. difficulty of using MPE4WP.  In other words, the documentation is long
  24. in order to cover all topics completely, but MPE4WP is very easy to
  25. use.
  26.  
  27.      Until now, editing WordPerfect macros was not easy.  The built-in
  28. WordPerfect Macro Editor lacks all but the most primitive editing
  29. functions.  There are no search and replace capabilities, no utility
  30. for line drawing, no capacity to splice in routines from other macros.
  31. Some of these shortcomings are remedied by the ED program, available
  32. from WordPerfect Corporation for an additional fee.  Unfortunately,
  33. using ED means leaving WordPerfect.  Therefore, you must know in
  34. advance the keystrokes that are necessary for your macro.  Among ED's
  35. other limitations are the absence of line drawing capabilities and the
  36. inability to view WordPerfect special characters.
  37.  
  38.      The optimal macro editor should support all of WordPerfect's
  39. editing features and should allow instant access to and recording of
  40. all keystrokes required to use WordPerfect's menus.  MPE4WP fulfills
  41. these requirements and does much more.
  42.  
  43.      A few of the features offered by MPE4WP are:
  44.  
  45.      ˛  Insert Macro Commands, complete with tildes, using no more
  46.         than three keystrokes
  47.  
  48.      ˛  Convert existing macros into WordPerfect or ASCII files for
  49.         further editing or printing
  50.  
  51.      ˛  Draw boxed messages using WordPerfect's line draw feature
  52.  
  53.      ˛  Block, copy and move Macro Commands and text
  54.  
  55.      ˛  Easily cut and paste routines from other macros
  56.  
  57.      ˛  Use search and replace tools to debug and edit macros quickly
  58.  
  59.      ˛  Effortlessly control the position of macro messages
  60.  
  61.      ˛  Use numbers rather than control codes or ASCII characters to
  62.         position macro messages
  63.  
  64.      ˛  Menu selection of commands to control the appearance of on-
  65.         screen messages
  66.  
  67.      ˛  Draft, edit and spell check text of any length for inclusion
  68.         in macros
  69.  
  70.      ˛  Create and edit macros that are too big for the Macro Editor
  71.  
  72.      ˛  Use DOS wild cards to process several files in one operation
  73.  
  74.      Because of MPE4WP's memory conservation techniques, macros may be
  75. created without ever leaving WordPerfect, by using the Shell/DOS
  76. Command feature.  An MPE4WP macro automates the entire process,
  77. converting the source file on the WordPerfect editing screen into a
  78. macro.  And MPE4WP's speed will considerably shorten the time required
  79. to create and edit macros.
  80.  
  81.      MPE4WP consists of three types of tools to overcome the
  82. inadequacies of the WordPerfect Macro Editor:
  83.  
  84.      (1) MC.COM, the Macro Compiler, compiles (converts) source files
  85. into WordPerfect macros.  (A source file is nothing more than a
  86. textual representation of a macro as it would appear in the Macro
  87. Editor.)  MC is blazingly fast and minimizes memory usage, so it can
  88. be used without ever leaving WordPerfect, by using the Shell/DOS
  89. Command feature.  (An MPE4WP macro automates the entire process.)  MC
  90. supports advanced features not available through the WordPerfect Macro
  91. Editor to simplify writing WordPerfect macros.  Source files may be
  92. WordPerfect documents or ASCII files.
  93.  
  94.      (2) M2T.COM, the Macro Decompiler, performs the opposite task:
  95. it converts WordPerfect macros into WordPerfect files or simple ASCII
  96. text.  Use M2T to examine, modify, or print macros created by yourself
  97. or others, outside the confines of the Macro Editor.
  98.  
  99.      (3) The Macro Programming Environment emulates and improves upon
  100. the desirable features of the Macro Editor.  The Macro Programming
  101. Environment includes the MPE4WP keyboard and a series of macros to
  102. facilitate the creation of macros at the WordPerfect editing screen.
  103. Macro Commands are no more than three keystrokes away and are inserted
  104. in your macros complete with tildes and the cursor correctly
  105. positioned to take the next argument.  Key Commands can be added by
  106. pressing the key represented by the command.  You may record
  107. keystrokes and access menus in the same manner as you would with the
  108. macro recorder, without leaving the editing screen.  Attractive
  109. presentations can be created and positioned on the screen with the
  110. same ease that WordPerfect supports for the printed page.  Incorrect
  111. Macro and Key Commands can be deleted by striking one key.
  112.  
  113.      MPE4WP is fully compatible with all releases of WordPerfect 5.1.
  114. Of course, if you are still using WordPerfect 5.0, you must restrict
  115. yourself to the Macro and Key Commands available in version 5.0.  For
  116. a list of commands available in both versions 5.1 and 5.0, please see
  117. the file COMMAND.LST.  Regrettably, the MPE4WP macros will not work in
  118. WordPerfect 5.0.  Even without the MPE4WP macros, you will find
  119. yourself more productive at the normal WordPerfect editing screen or
  120. in your favorite editor than in the Macro Editor.
  121.  
  122.      Information concerning registration and licensing of MPE4WP may
  123. be found at the end of the User Reference Guide in the section
  124. entitled "REGISTRATION/LICENSE/COPYRIGHT".  In brief, there is a $20
  125. registration fee for personal use of MPE4WP.  A license is required
  126. for business use.
  127.  
  128. QUICK START
  129.  
  130.      The following Quick Start information is for those who resist
  131. reading documentation or who at least want to get their feet wet
  132. before taking the plunge.  More detailed information in simple English
  133. is presented in the accompanying User Reference Guide (see the file
  134. MANUAL.MPE).
  135.  
  136. The MPE4WP package contains the following files:
  137.  
  138.      README.MPE     MPE4WP Quick Start (this document)
  139.  
  140.      MANUAL.MPE     MPE4WP User Reference Guide formatted as a
  141.                     WordPerfect document
  142.  
  143.          MC.COM     Macro Compiler, described in MANUAL.MPE and
  144.                     README.MPE
  145.  
  146.         M2T.COM     Macro Decompiler, described in MANUAL.MPE and
  147.                     README.MPE
  148.  
  149.    MPE4WP-I.WPK     Integrated MPE4WP keyboard, described in
  150.                     MANUAL.MPE and README.MPE
  151.  
  152.      MPE4WP.WPK     Alternative MPE4WP keyboard, described in
  153.                     MANUAL.MPE and README.MPE
  154.  
  155.    {ATTRIB}.WPM     MPE4WP macro files for use with MPE4WP.WPK
  156.    CMDS_A-L.WPM     keyboard, described in MANUAL.MPE and
  157.    CMDS_M-Z.WPM     README.MPE
  158.    {CREATE}.WPM
  159.    {EXPAND}.WPM     (Do not install these macro files if you
  160.      {HELP}.WPM     elect to use the MPE4WPK-I.WPK keyboard)
  161.    {INSERT}.WPM
  162.       {KEY}.WPM
  163.       {POS}.WPM
  164.    {RECORD}.WPM
  165.    {SPCIAL}.WPM
  166.  
  167.    {CREATE}.DOC     Sample source file for creating a customized
  168.                     {CREATE} macro, described in MANUAL.MPE and
  169.                     README.MPE (formatted as a WordPerfect
  170.                     document)
  171.  
  172.     COMMAND.LST     List of Commands supported by MPE4WP,
  173.                     described in MANUAL.MPE and README.MPE
  174.  
  175.     COMMAND.WPM     Diagnostic macro, described in COMMAND.LST
  176.  
  177.    REGISTER.FRM     Convenient form for registering MPE4WP
  178.  
  179.       WHATS.NEW     Information on changes from Version 1
  180.  
  181.      MPE4WP is furnished with two alternative keyboard files:
  182. MPE4WP.WPK and MPE4WP-I.WPK.  The MPE4WP.WPK keyboard works in tandem
  183. with an external set of macro files.  In contrast, MPE4WP-I.WPK is an
  184. integrated keyboard in which the macros have been incorporated into
  185. the keyboard file, eliminating the need for the external macro files.
  186. Each approach has its advantages and disadvantages.  In favor of
  187. MPE4WP-I.WPK, fewer files are required, and the macros should execute
  188. more quickly on slower machines.  The advantage of MPE4WP.WPK is
  189. better memory conservation since the external macros are loaded and
  190. released from memory one at a time.  For most users memory
  191. economization will not be an issue, so MPE4WP-I.WPK will be the better
  192. choice.
  193.  
  194.      Complete installation instructions are set out in the User
  195. Reference Guide.  Copy either MPE4WP.WPK or MPE4WP-I.WPK to the same
  196. directory as your other macros and keyboard files.  If you opt for
  197. MPE4WP.WPK, the MPE4WP macro files (*.WPM) should also be copied to
  198. your macro directory.  Ideally, MC and M2T should be placed in a
  199. directory on your path.  Now start WordPerfect, if you are not in it
  200. already, select the MPE4WP or MPE4WP-I keyboard file in Setup, and you
  201. are ready to use MPE4WP.
  202.  
  203.      MC reads a source file and converts it to a WordPerfect macro.
  204. Source files may be WordPerfect documents or ASCII text files.  MC
  205. automatically recognizes the correct file format.
  206.  
  207.      In general, a source file will look exactly the same as the text
  208. that appears on the screen when you edit a macro in the WordPerfect
  209. Macro Editor with the exceptions noted below.
  210.  
  211.      Use ordinary spaces, not the centered dots (ASCII 250) utilized
  212. by the Macro Editor.  Tabs and hard returns are understood as
  213. formatting commands, just as they are by the Macro Editor.  Case is
  214. not important when entering Macro and Key Commands, but spelling is.
  215. If you have any doubts about the correct spelling of a command,
  216. consult the COMMAND.LST file.  Use the MPE4WP macros described below
  217. and you will never have to worry about spelling errors.
  218.  
  219.      MC expects that any text beginning with an open brace ({) is the
  220. beginning of a Macro Command, a Key Command, or one of the following
  221. special keys:  {ALT x}, where "x" is any legal character, {KEY MACRO
  222. n}, where "n" is the number of a Key Macro, or {VAR n}, where "n" is a
  223. number from 0 to 9.  If you want to treat the open brace as text, or
  224. if you want a command to appear as text, simply add an extra open
  225. brace, so your source file would look like this:  {{.  Failure to add
  226. an open brace before ordinary text will result in a harmless error
  227. message; MC will still treat the open brace as text.  To treat a
  228. command as text (you usually won't), you must add the extra open
  229. brace.
  230.  
  231.      Instead of using cryptic Key Commands or ASCII characters in
  232. connection with the character positioning character code {^P}, you may
  233. use the notation {n} (where "n" is any number between 0 and 254) to
  234. represent column and/or row numbers.  Thus, if you want to position a
  235. prompt at column 3, row 65, you simply type {^P}{3}{65}.  The {n}
  236. notation may also used to enter any ASCII character between 1 and 254.
  237. The command {0} is correctly interpreted as the appropriate
  238. WordPerfect code (ASCII 254) to position the cursor at column or
  239. row 0.
  240.  
  241.      In addition to the WordPerfect macro comment ({;}), MPE4WP also
  242. supports silent comments, which are ignored when MC compiles your
  243. macro.  The beginning of a silent comment is marked by a colon in
  244. braces: "{:}" and, like the WordPerfect comment, terminated by a
  245. tilde.  For example, {:}This is a silent comment~.
  246.  
  247.      A macro may contain an optional description.  The description
  248. should be preceded by the command {DESCRIPTION} (upper-case, lower-
  249. case or any combination of the two is ok) and terminated by either a
  250. tilde or a hard return.  WordPerfect imposes a 39-character limitation
  251. on the length of a description, so MC will truncate any description
  252. that is longer than 39 characters.  The description may be on a line
  253. by itself or on a line with other commands.  To minimize complication,
  254. place the description at the top of the macro source file.  The
  255. description may, however, be placed anywhere within the first 1000
  256. characters of the source file.  If you have a reason for using the
  257. command {DESCRIPTION} as text, precede it with an extra open brace,
  258. like this:  {{DESCRIPTION}.
  259.  
  260.      You may also use the optional notation {MACRO CMD n} and
  261. {KEY CMD n}, where "n" is the number of a Macro or Key Command.  The
  262. main use of this feature is to allow access to new Macro and Key
  263. Commands added in any future interim releases of WordPerfect.  For
  264. more information on this feature, see the section entitled "Anti-
  265. Obsolescence" in the User Reference Guide.
  266.  
  267.      Once you have created your source file, you compile it (i.e.
  268. convert it to an operational macro) with MC.  The easiest way to run
  269. MC is from within WordPerfect using the Create macro (CTRL-C).  If MC
  270. is not on your path, you should edit the Create macro, following the
  271. instructions at the beginning of the macro, to specify the full path
  272. name of MC.  Create is initially configured to place new macros in the
  273. same directory as the source file.  The new macro will have the same
  274. root name as the source file and the extension ".WPM".  Create may be
  275. modified to place new macros in another directory.  For additional
  276. information about customizing Create, see the section entitled
  277. "Create" in the User Reference Guide.
  278.  
  279.      For your convenience, MC also permits you to enter optional
  280. commands when you start the program.  The full syntax for MC.COM is:
  281.  
  282.                MC [/options] [source file] [macro file]
  283.  
  284.      Source      The name of the file that will be converted to a
  285.      file        macro.  Full path names and wild cards are permitted.
  286.                  If you specify a source file only and do not specify
  287.                  a macro file name, the new macro will be placed in
  288.                  the same directory as the source file with the same
  289.                  root name and the extension ".WPM".
  290.  
  291.      Macro       The name of the new macro.  If you specify the
  292.      file        destination directory only and do not specify a macro
  293.                  file name, the new macro will have the same root name
  294.                  as the source file and the extension ".WPM".  If you
  295.                  specify a macro file name only and do not specify a
  296.                  path, the macro will be placed in the default
  297.                  directory.  If you omit the extension of the macro
  298.                  file, the extension ".WPM" will be added.  In wild
  299.                  card operations, only the destination directory may
  300.                  be specified.
  301.  
  302. Valid options are:
  303.  
  304.      /P          Pause to verify command line entry
  305.      /V          Verify before overwriting existing file
  306.      /M          Force monochrome display
  307.      /N          No error file
  308.      /?          Help
  309.  
  310.  
  311.      The /P and /V options are required only if you specify a source
  312. file on the command line when you run MC.  They are unnecessary when
  313. you enter the source file name from within MC.  The /P option is more
  314. inclusive than /V in that /P always pauses, /V pauses only when a file
  315. may be overwritten.  Options may appear before or after the source and
  316. macro file names and may be grouped under one slash.  Thus /PNM is
  317. equivalent to /P /N /M.
  318.  
  319.      The brackets ([]) are not typed and indicate that the parameters
  320. are optional.
  321.  
  322.      You use M2T.COM to decompile macros; i.e. convert them to
  323. WordPerfect documents (or to ASCII text by using the /A option).  M2T
  324. is similar in operation to MC.  You run M2T by typing M2T at the DOS
  325. command line.  You will be prompted for the name of your macro file
  326. and the name of your text file.  Before processing a file, M2T will
  327. verify that it is a WordPerfect macro file.  If an existing macro
  328. contains a description, M2T will add a description statement to the
  329. top of the output file.
  330.  
  331.      For your convenience, M2T also permits you to enter optional
  332. commands when you start the program.  The full syntax for M2T.COM is:
  333.  
  334.                M2T [/options] [macro file] [text file]
  335.  
  336.      Macro       The name of the macro that will be converted to text.
  337.      file        Full path names and wild cards are permitted.  If you
  338.                  specify a macro file only and do not specify a text
  339.                  file name, the text file will be placed in the same
  340.                  directory as the macro with the same root name and
  341.                  the extension ".TXT".
  342.  
  343.      Text        The name of the new text file.  If you specify the
  344.      file        destination directory only and do not specify a file
  345.                  name, the new file will have the same root name as
  346.                  the macro and the extension ".TXT".  If you specify a
  347.                  file name only and do not specify a path, the new
  348.                  file will be placed in the default directory.  If you
  349.                  omit the extension of the text file, the extension
  350.                  ".TXT" will be added.  In wild card operations, only
  351.                  the destination directory may be specified.
  352.  
  353. Valid options are:
  354.  
  355.      /A          Output ASCII file instead of WordPerfect document
  356.      /P          Pause to verify command line entry
  357.      /V          Verify before overwriting existing file
  358.      /M          Force monochrome display
  359.      /?          Help
  360.  
  361.      MPE4WP is supplied with a set of macros to simplify creating and
  362. editing macros at the WordPerfect editing screen.  Each macro is
  363. assigned a key on one of the MPE4WP keyboards.  The MPE4WP-I uses Key
  364. Macros exclusively.  The MPE4WP keyboard uses a combination of Key
  365. Macros and file macros.
  366.  
  367.      The following table lists each of the MPE4WP macros, identifies
  368. the key to which it is assigned, and summarizes the use of each key.
  369. The macro file associated with the key on the MPE4WP keyboard is also
  370. listed.  (Note:  The macro file name is irrelevant to the MPE4WP-I
  371. keyboard because all its macros are Key Macros.  Users of the MPE4WP-I
  372. keyboard will need to know the macro file name, however, to examine or
  373. modify a macro, because, as explained in the Manual, the MPE4WP-I Key
  374. Macros have been compacted.)  You will notice that the root names of
  375. many of the MPE4WP macros are enclosed in braces.  The purpose of the
  376. braces is to avoid name conflicts with existing macros.  You may
  377. already have a macro named CREATE.WPM, but are unlikely to have one
  378. named {CREATE}.WPM.  The operation of all macros is described in
  379. detail in the User Reference Guide.
  380.  
  381.                             MPE4WP MACROS
  382.  
  383. Name            Key      File name                     Summary
  384.  
  385.  
  386. Help            CTRL-H   {HELP}.WPM     Just what its name suggests
  387.  
  388. Record Mode     CTRL-R   {RECORD}.WPM   Record keystrokes in WordPerfect in
  389.                                         an analogous manner to macro
  390.                                         recording
  391.  
  392. Insert Mode     CTRL-I   {INSERT}.WPM   Insert Key Commands in an analogous
  393.                                         manner to the Macro Editor's Command
  394.                                         Insert Mode
  395.  
  396. Key             CTRL-K   {KEY}.WPM      Insert a single Key Command in an
  397.                                         analogous manner to pressing CTRL-V
  398.                                         in the Macro Editor
  399.  
  400. Special Keys    CTRL-S   {SPCIAL}.WPM   Insert the commands {ALT x},
  401.                                         {KEY MACRO n} and {VAR n}
  402.  
  403. Macro Commands  CTRL-{   CMDS_A-L.WPM   Help screen of Macro Commands from
  404. (A-L)                                   A to L; insert a command (with
  405.                                         tildes) by typing two-key mnemonic
  406.  
  407. Macro Commands  CTRL-}   CMDS_M-Z.WPM   Help screen of Macro Commands from
  408. (M-Z)                                   M to Z; insert a command (with
  409.                                         tildes) by typing two-key mnemonic
  410.  
  411. Expand          CTRL-X   {EXPAND}.WPM   Type two-key mnemonic then press
  412.                                         CTRL-X to expand to Macro Command
  413.                                         with tildes; uses same mnemonics as
  414.                                         CTRL-{ and CTRL-}, but without help
  415.                                         screens
  416.  
  417. Delete          CTRL-D   Key Macro      Delete Macro or Key Command on which
  418.                                         cursor is located; if cursor is not
  419.                                         on a command, delete first command to
  420.                                         left
  421.  
  422. Create          CTRL-C   {CREATE}.WPM   Convert the source file on the
  423.                                         editing screen to a macro
  424.  
  425. Position        CTRL-P   {POS}.WPM      Position message on screen
  426.  
  427. Attribute       CTRL-A   {ATTRIB}.WPM   Add attributes to messages
  428.  
  429. Write           CTRL-W   Key Macro      Save file in WordPerfect format, no
  430.                                         verification for overwrite
  431.  
  432. Clear Prompt    CTRL-    Key Macro      Clear status prompt from screen in
  433.                 Print                   the event of unanticipated errors
  434.                 Screen
  435.  
  436. Playback        CTRL-    Key Macro      Play back recording in case of
  437.                 Insert                  unanticipated interruptions
  438.  
  439.  
  440.      If you have questions about any instructions contained in the
  441. Quick Start section of this document, please refer to the User
  442. Reference Guide (MANUAL.MPE).  The User Reference Guide also discusses
  443. subjects such as Key Macros and Programming Tips, that are not
  444. addressed in this document.
  445.